//
//  InputPassWordView.m
//  HaoDeCaiFu
//
//  Created by 郑开宏 on 2017/11/8.
//  Copyright © 2017年 郑开宏. All rights reserved.
//

#import "InputPassWordView.h"

@interface InputPassWordView ()
@property (weak, nonatomic) IBOutlet UITextField *passwordTF;

@end

@implementation InputPassWordView

+ (instancetype)InputPassWordView{
    return [[NSBundle mainBundle] loadNibNamed:@"InputPassWordView" owner:nil options:nil].firstObject;
}

- (IBAction)canCel:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(cancelClick)]) {
        [self.delegate cancelClick];
    }
}
- (IBAction)confirm:(UIButton *)sender {
    if ([self.delegate respondsToSelector:@selector(confirmClickWithPassWord:)]) {
        [self.delegate confirmClickWithPassWord:self.passwordTF.text];
    }
}

@end
